package maire;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class mr_163com extends Reg {

	public void reg(String username, String password) {

		String url = "http://reg.email.163.com/unireg/call.do?cmd=register.entrance&from=163&regPage=163";
		get(url);

		dr.findElement(By.id("nameIpt")).sendKeys(username);
		dr.findElement(By.id("mainPwdIpt")).sendKeys(password);
		dr.findElement(By.id("mainCfmPwdIpt")).sendKeys(password);
		dr.findElement(By.id("vcodeIpt")).click();

		System.out.println(username + "@163.com");

	}

	public static void main(String[] args) {
		new mr_163com().reg("liyndhw", "qq3131798654");
	}

}
